package com.gdepri.mqtt.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Config {
    @Value("${subscribe.broker}")
    private String broker;
    @Value("${subscribe.topic}")
    private String topic;
    @Value("${subscribe.username}")
    private String username;
    @Value("${subscribe.password}")
    private String password;
    @Value("${subscribe.clientid}")
    private String clientId;


    @Value("${subscribe.broker}")
    private String subscribeBroker;
    @Value("${subscribe.topic}")
    private String subscribeTopic;
    @Value("${subscribe.username}")
    private String subscribeUsername;
    @Value("${subscribe.password}")
    private String subscribePassword;
    @Value("${subscribe.clientid}")
    private String subscribeClientId;

    @Value("${publish.broker}")
    private String publishBroker;
    @Value("${publish.topic}")
    private String publishTopic;
    @Value("${publish.username}")
    private String publishUsername;
    @Value("${publish.password}")
    private String publishPassword;
    @Value("${publish.clientid}")
    private String publishClientId;


    public String getSubscribeBroker() {
        return subscribeBroker;
    }

    public String getSubscribeTopic() {
        return subscribeTopic;
    }

    public String getSubscribeUsername() {
        return subscribeUsername;
    }

    public String getSubscribePassword() {
        return subscribePassword;
    }

    public String getSubscribeClientId() {
        return subscribeClientId;
    }

    public String getPublishBroker() {
        return publishBroker;
    }

    public String getPublishTopic() {
        return publishTopic;
    }

    public String getPublishUsername() {
        return publishUsername;
    }

    public String getPublishPassword() {
        return publishPassword;
    }

    public String getPublishClientId() {
        return publishClientId;
    }

    public String getBroker() {
        return broker;
    }

    public String getTopic() {
        return topic;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getClientId() {
        return clientId;
    }
}
